package at.fhooe.pandora.visuals;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.geom.Point2D;
import java.util.ArrayList;

import at.fhooe.engine.visuals.Visual;

public class PathVisual implements Visual{

	private ArrayList<Point2D> m_list;
	
	public PathVisual(ArrayList<Point2D> list) {
		m_list = list;
	}
	
	@Override
	public void draw(Graphics2D graphics) {
		graphics.setColor(Color.red);
		for(Point2D p : m_list) {
			graphics.fillRect((int)p.getX(), (int)p.getY(), 1, 1);
		}
	}

}
